#include "stdafx.h"
#include "Dinosaur.h"
#include "Point.h"

Dinosaur::Dinosaur();
{
	//default constructor
}

Dinosaur::Dinosaur(char* species, int id, bool carn, Point location)
{
	ID = id;
	Species = species;
	isCarn = carn;
	Location = location;
	health = 100;
}

int Dinosaur::getAge()
{
	return age;
}

int Dinosaur::getSpecies()
{
	return Species;
}

Point Dinosaur::getLocation()
{
	return Location;
}

void Dinosaur::setAge()
{
	age++;
}

void Dinosaur::setLocation(Point newLoc)
{
	Location = newloc;
}

void Dinosaur::layEgg()
{
	//add an egg to the list in command
}

void Dinosaur::eat()
{
	//get closest plant from command
	//go to that plant over so many ticks?
	//eat plant and reset health

	health += 25;  //or just reset to 100?
}

void Dinosaur::fight()
{
	//get closest dino from command
	//send both dinos to battle via command?
}

void Dinosaur::defend()
{
	//defend right after laying an egg
	//move to top of priority
}